/**
 * 
 */
package io.gitee.falllee.dao.core;

import io.gitee.falllee.dao.config.DaoConfigContextHolder;
import io.gitee.falllee.dao.model.BaseDaoConfig;
import io.gitee.falllee.dao.util.FilterPlus;

/**
 * @author batty
 * @date 2022-06-28
 *
 */
public class FilterBuilder {

    protected FilterPlus filter;
    
    protected FilterBuilder(BaseDaoConfig daoConfig, FilterPlus filter) {
        if (DaoConfigContextHolder.getAddGlobalFilter()) {
            filter = daoConfig.addGlobalFilter(filter);
        }
        this.filter = filter;
    }
}
